package cn.magicduck.demo;

import java.util.concurrent.TimeUnit;

/**
 * @projectName: design-pattern-demo
 * @className: CacheService
 * @description: 缓冲服务接口
 * @author: MagicDuck
 * @create: 2020-07-17 09:44
 **/
public interface CacheService {

    String get(final String key, int redisType);

    void set(String key, String value, int redisType);

    void set(String key, String value, long timeout, TimeUnit timeUnit, int redisType);

    void del(String key, int redisType);
}
